// import Vue from 'vue'
import Router from 'vue-router'
// Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: resolve => require.ensure([], () => resolve(require('@/pages/home/home')), 'home')
    }, 
    {
      path: '/home',
      name: 'home',
      component: resolve => require.ensure([], () => resolve(require('@/pages/home/home')), 'home')
    },
    {
      path: '/accidentInfo',
      name: 'accidentInfo',
      component: resolve => require.ensure([], () => resolve(require('@/pages/accidentInfo/accidentInfo')), 'accidentInfo')
    },
    {
      path: '/userSignIn',
      name: 'userSignIn',
      component: resolve => require.ensure([], () => resolve(require('@/pages/userSignIn/userSignIn')), 'userSignIn')
    },
    {
      path: '/accidentPic',
      name: 'accidentPic',
      component: resolve => require.ensure([], () => resolve(require('@/pages/accidentPic/accidentPic')), 'accidentPic')
    },
    {
      path: '/evacuateOfScene',
      name: 'evacuateOfScene',
      component: resolve => require.ensure([], () => resolve(require('@/pages/evacuateOfScene/evacuateOfScene')), 'evacuateOfScene')
    },
    {
      path: '/intelligentResult',
      name: 'intelligentResult',
      component: resolve => require.ensure([], () => resolve(require('@/pages/intelligentResult/intelligentResult')), 'intelligentResult')
    },
    {
      path: '/supplement',
      name: 'supplement',
      component: resolve => require.ensure([], () => resolve(require('@/pages/supplement/supplement')), 'supplement')
    },
    {
      path: '/oppositeSideInfo',
      name: 'oppositeSideInfo',
      component: resolve => require.ensure([], () => resolve(require('@/pages/oppositeSideInfo/oppositeSideInfo')), 'oppositeSideInfo')
    },
    {
      path: '/cognizance', // 认定结果页
      name: 'cognizance',
      component: resolve => require.ensure([], () => resolve(require('@/pages/supplement/cognizance')), 'cognizance')
    },
    {
      path: '/responsibility', // responsibility 责任认定书
      name: 'responsibility',
      component: resolve => require.ensure([], () => resolve(require('@/pages/supplement/responsibility')), 'responsibility')
    },
    // {
    //   path: '/pdfpreview', // pdfpreview pdf预览
    //   name: 'pdfpreview',
    //   component: resolve => require.ensure([], () => resolve(require('@/pages/supplement/pdf-preview')), 'pdfpreview')
    // },
    {
      path: '/flowPath', 
      name: 'flowPath',
      component: resolve => require.ensure([], () => resolve(require('@/pages/flowPath/flowPath')), 'flowPath')
    },
    { 
      path: '/information', // information 案件信息
      name: 'information',
      component: resolve => require.ensure([], () => resolve(require('@/pages/supplement/case-information')), 'information')
    },
    {
      path: '/prompt', // prompt 事故报案提示页
      name: 'prompt',
      component: resolve => require.ensure([], () => resolve(require('@/pages/supplement/prompt')), 'prompt')
    },
    {
      path: '/intelligentResult_B',  // 事故B方扫码后打开的页面  lastPage
      name: 'intelligentResult_B',
      component: resolve => require.ensure([], () => resolve(require('@/pages/intelligentResult/intelligentResult_B')), 'intelligentResult_B')
    },
    {
      path: '/lastPage',  // 事故B方点击不同意之后的页面  
      name: 'lastPage',
      component: resolve => require.ensure([], () => resolve(require('@/pages/intelligentResult/lastPage')), 'lastPage')
    },
    {  
      path: '/handle', // 处理和定责tab页
      name: 'handle',
      component: resolve => require.ensure([], () => resolve(require('@/pages/handle/handle')), 'handle')
    },
    {
      path: '/handleType', // 责任认定书列表
      name: 'handleType',
      component: resolve => require.ensure([], () => resolve(require('@/pages/handle/handle-type')), 'handleType')
    },
    {
      path: '/version', // 查看版本
      name: 'version',
      component: resolve => require.ensure([], () => resolve(require('@/pages/example/example')), 'version')
    },
    {
      path: '/reportAccept', //报案受理页
      name: 'reportAccept',
      component: resolve => require.ensure([], () => resolve(require('@/pages/reportAccept/reportAccept')), 'reportAccept')
    },
    {
      path: '/specialAc', //报案受理页
      name: 'specialAc',
      component: resolve => require.ensure([], () => resolve(require('@/pages/specialAc/specialAc')), 'specialAc')
    },
    {
      path: '/accidentPicTest', //临时测试界面一
      name: 'accidentPicTest',
      component: resolve => require.ensure([], () => resolve(require('@/pages/accidentPic/accidentPicTest')), 'accidentPicTest')
    },
    {
      path: '/resultTestPage', //临时测试界面二
      name: 'resultTestPage',
      component: resolve => require.ensure([], () => resolve(require('@/pages/accidentPic/resultTestPage')), 'resultTestPage')
    },
    {
      // 新的测试界面带stg
      path: '/accidentPicStg',
      name: 'accidentPicStg',
      component: resolve => require.ensure([], () => resolve(require('@/pages/accidentPic/accidentPicStg')), 'accidentPicStg')
    },
    {
      // 新的测试界面2带stg
      path: '/supplementStg',
      name: 'supplementStg',
      component: resolve => require.ensure([], () => resolve(require('@/pages/supplement/supplementStg')), 'supplementStg')
    }
  ]
})

